package com.wuyanyidui.dao;

import com.wuyanyidui.domain.Post;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PostDao {
    //增加帖子
    public void addPost(Post post);
    //找
    public Post findPostByPostId(int postId);
    //列
    public List<Post> listAllPostInfo();
    //删
    public void deletePostById(int postId);
    //更新
    public void updatePostByPost(Post post);
    //点赞
    public void addPostGoodCount(int postId);
    //踩
    public void addPostBadCount(int postId);
}
